package com.itheima.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.Clazz;
import com.itheima.pojo.PageResult;

import java.time.LocalDate;
import java.util.List;

public interface ClazzService extends IService<Clazz> {

    void saveClazz(Clazz clazz);

    PageResult<Clazz> listClazz(String name, LocalDate begin, LocalDate end, int page, int pageSize);

    Clazz getByClazzId(Integer id);

    void updateClazz(Clazz clazz);

    void deleteByClazzId(Integer id);

    List<Clazz> listAll();
}
